Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(invoice): Use BigDecimal rather than float for amount details #3030

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

vincent-pochet
Copy link
Collaborator

Context

Some invoices failed to generate because some values stored in the fee#amount_details were failing to render as amount. The reason was that they were computed as float and converted to string.

Description

Since float is not a reliable data type, we should use BigDecimal to handle the amount detail values

@vincent-pochet vincent-pochet merged commit a65e674 into main Jan 7, 2025
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-percentage-amount-details branch January 7, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants